package demo1;


class Person {
    public String name = "张三";
    public int age = 10;

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
public class Test1 {
    public static void main(String[] args) {
        Person person = new Person();
        System.out.println(person);
    }
}
